<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>
	<div>
		<h:form id="formEditaSolicita">
			<p:panelGrid style="margin-top:20px">
				<p:row>
					<p:column style="align:right;">
						<h:outputLabel for="iEcc" value="Centro Custo"
							styleClass="LabelFont" />
					</p:column>
					<p:column>
						<p:inputText id="iEcc"
							value="#{listaSolicitaTela.solicitacao.itensSolicitacao[0].centroCusto.codigo}"
							size="7" maxlength="9" style="font-size: 14px;"
							validator="#{listaSolicitaTela.validaCampos}" required="true"
							requiredMessage="#{message.msg_requerido}">
							<p:ajax event="blur" update=":growl,:formEditaSolicita:iEcc"
								process="@this" global="false" />
						</p:inputText>
						<p:commandButton id="pesqCc" icon="ui-icon-search"
							title="#{message.botao_pesquisar}" styleClass="ButtonPesq"
							onclick="dlg9.show()" global="false" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputLabel for="iEOp" value="Ordem Produção"
							styleClass="LabelFont" />
					</p:column>
					<p:column>
						<p:inputText id="iEOp"
							value="#{listaSolicitaTela.solicitacao.itensSolicitacao[0].ordemProd}"
							style="font-size: 14px;">
						</p:inputText>
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputLabel for="iELoc" value="Local" styleClass="LabelFont" />
					</p:column>
					<p:column>
						<p:inputText id="iELoc"
							value="#{listaSolicitaTela.solicitacao.itensSolicitacao[0].local}"
							maxlength="4" size="1" style="font-size: 14px;"
							validator="#{listaSolicitaTela.validaCampos}" required="true"
							requiredMessage="#{message.msg_requerido}">
							<p:ajax event="blur" update=":growl,:formEditaSolicita:iELoc"
								process="@this" global="false" />
						</p:inputText>
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputLabel for="iEQua" value="Quantidade"
							styleClass="LabelFont" />
					</p:column>
					<p:column>
						<p:inputText id="iEQua"
							value="#{listaSolicitaTela.solicitacao.itensSolicitacao[0].quantidade}"
							required="true" size="8" style="font-size: 14px;"
							converterMessage="#{message.msg_conversao}" />
					</p:column>
				</p:row>
				<p:row>
					<p:column>
						<h:outputLabel for="iEObs" value="Observação"
							styleClass="LabelFont" />
					</p:column>
					<p:column>
						<p:inputText id="iEObs"
							value="#{listaSolicitaTela.solicitacao.itensSolicitacao[0].observacao}"
							style="font-size: 14px;" />
					</p:column>
				</p:row>

				<p:row>
					<p:column style="align:right;">
						<h:outputLabel for="iEComp" value="Comprador"
							styleClass="LabelFont" />
					</p:column>
					<p:column>
						<p:inputText id="iEComp"
							value="#{listaSolicitaTela.solicitacao.comprador.codigo}"
							size="3" maxlength="3" style="font-size: 14px;"
							validator="#{listaSolicitaTela.validaCampos}" required="true"
							requiredMessage="#{message.msg_requerido}">
							<p:ajax event="blur" update=":growl,:formEditaSolicita:iEComp"
								process="@this" global="false" />
						</p:inputText>
						<p:commandButton icon="ui-icon-search"
							title="#{message.botao_pesquisar}" styleClass="ButtonPesq"
							onclick="dlg13.show()" global="false" />
					</p:column>
				</p:row>

			</p:panelGrid>
			<br />
			<br />
			<p:commandButton value="#{message.botao_alterar}" icon="ui-icon-disk"
				update=":formEditaSolicita,@form,:growl,:formGridSol:dataTableSol"
				style="margin-right: 10px; margin-left: 65px; font-size: 14px;"
				action="#{listaSolicitaTela.alteraSolicitacao}" />
			<p:commandButton value="#{message.botao_cancelar}" type="button"
				icon="ui-icon-close" style="font-size: 14px;" onclick="dlg8.hide()" />
		</h:form>
	</div>
</h:body>
</html>